﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlBaoCaoTonKho.ascx.cs" Inherits="WebUserControl_ControlBaoCaoTonKho" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc1" %>

<%@ Register assembly="DevExpress.XtraReports.v9.2.Web" namespace="DevExpress.XtraReports.Web" tagprefix="dxxr" %>

<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/datePicker.css")%>' type="text/css" />
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />


<script type="text/javascript">
     function pageLoad() {
     
      $(function()
        {
	            $("#<%= TextBox1.ClientID %>").datePicker(
	                {
	                    clickInput:true,
			            startDate: '01/01/1970'
	                }
	                );
        });
     
       $("#<%= Button1.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
        
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script>  

        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
             <fieldset>
    <legend>Báo cáo tồn kho</legend>
    <div class="fm-req">
      <label for="txtFromDate">Ngày:</label>
       <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
      </div>
      <div class="fm-req">
      <asp:CheckBox Text="In tồn = 0" ID="CheckBox1" Font-Bold="false" ForeColor="Black" Font-Size="Small" runat="server" />
      </div>
      </fieldset>
      <div>
      <asp:Button ID="Button1" runat="server" Text="báo cáo" 
                                   onclick="Button1_Click1" />
                              
      </div>
               
               </asp:View>
            <asp:View ID="View2" runat="server">
               <dxxr:ReportToolbar ID="ReportToolbar1" runat="server" 
            ReportViewer="<%# ReportViewer1 %>" ShowDefaultButtons="False">
            <Items>
                <dxxr:ReportToolbarButton ItemKind="Search" 
                    ToolTip="Display the search window" />
                <dxxr:ReportToolbarSeparator />
                <dxxr:ReportToolbarButton ItemKind="PrintReport" ToolTip="Print the report" />
                <dxxr:ReportToolbarButton ItemKind="PrintPage" 
                    ToolTip="Print the current page" />
                <dxxr:ReportToolbarSeparator />
                <dxxr:ReportToolbarButton Enabled="False" ItemKind="FirstPage" 
                    ToolTip="First Page" />
                <dxxr:ReportToolbarButton Enabled="False" ItemKind="PreviousPage" 
                    ToolTip="Previous Page" />
                <dxxr:ReportToolbarLabel Text="Page" />
                <dxxr:ReportToolbarComboBox ItemKind="PageNumber" Width="65px">
                </dxxr:ReportToolbarComboBox>
                <dxxr:ReportToolbarLabel Text="of" />
                <dxxr:ReportToolbarTextBox IsReadOnly="True" ItemKind="PageCount" />
                <dxxr:ReportToolbarButton ItemKind="NextPage" ToolTip="Next Page" />
                <dxxr:ReportToolbarButton ItemKind="LastPage" ToolTip="Last Page" />
                <dxxr:ReportToolbarSeparator />
                <dxxr:ReportToolbarButton ItemKind="SaveToDisk" 
                    ToolTip="Export a report and save it to the disk" />
                <dxxr:ReportToolbarButton ItemKind="SaveToWindow" 
                    ToolTip="Export a report and show it in a new window" />
                <dxxr:ReportToolbarComboBox ItemKind="SaveFormat" Width="70px">
                    <elements>
                        <dxxr:ListElement Text="Pdf" Value="pdf" />
                        <dxxr:ListElement Text="Xls" Value="xls" />
                        <dxxr:ListElement Text="Rtf" Value="rtf" />
                        <dxxr:ListElement Text="Mht" Value="mht" />
                        <dxxr:ListElement Text="Text" Value="txt" />
                        <dxxr:ListElement Text="Csv" Value="csv" />
                        <dxxr:ListElement Text="Image" Value="png" />
                    </elements>
                </dxxr:ReportToolbarComboBox>
            </Items>
            <styles>
                <LabelStyle>
                <margins marginleft="3px" marginright="3px" />
                </LabelStyle>
            </styles>
        </dxxr:ReportToolbar>
       
        
               
                
         <br />
                <dxxr:ReportViewer ID="ReportViewer1" runat="server">
                </dxxr:ReportViewer>
                <br />
                <br />
                
              
            </asp:View>
        </asp:MultiView>
        <br />
        <br />
        <br />
        <br />
   
<uc1:uscMsgBox ID="uscMsgBox1" runat="server" />

   
